const commonRule = [{ required: true, message: '请输入', trigger: 'blur' }];
const dateRule = [{ required: true, message: '请输入', trigger: 'change' }];

const emailRule = [{ required: true, message: '请输入正确电子邮件', trigger: 'blur' ,pattern:/^[^\@]+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/}]
const phoneRule = [{ required: true, message: '请输入正确的手机号码', trigger: 'blur' ,pattern:/^\d*$/}]


export {
  commonRule,
  emailRule,
  dateRule,
  phoneRule
}